package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * SaleConditionTypeCcRate generated by hbm2java
 */
@Entity
@Table(name="sale_condition_type_cc_rate"
    ,catalog="lmis"
)
public class SaleConditionTypeCcRate  implements java.io.Serializable {


     private SaleConditionTypeCcRateId id;
     private SaleConditionType saleConditionType;
     private Short ccInterestRateDiscCalcType;
     private BigDecimal ccInterestRateDiscVal;
     private BigDecimal ccInterestRateDiscPerc;

    public SaleConditionTypeCcRate() {
    }

	
    public SaleConditionTypeCcRate(SaleConditionTypeCcRateId id, SaleConditionType saleConditionType) {
        this.id = id;
        this.saleConditionType = saleConditionType;
    }
    public SaleConditionTypeCcRate(SaleConditionTypeCcRateId id, SaleConditionType saleConditionType, Short ccInterestRateDiscCalcType, BigDecimal ccInterestRateDiscVal, BigDecimal ccInterestRateDiscPerc) {
       this.id = id;
       this.saleConditionType = saleConditionType;
       this.ccInterestRateDiscCalcType = ccInterestRateDiscCalcType;
       this.ccInterestRateDiscVal = ccInterestRateDiscVal;
       this.ccInterestRateDiscPerc = ccInterestRateDiscPerc;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="saleContTypeNo", column=@Column(name="SALE_CONT_TYPE_NO", nullable=false) ), 
        @AttributeOverride(name="monthInvBegin", column=@Column(name="MONTH_INV_BEGIN", nullable=false) ), 
        @AttributeOverride(name="monthInvEnd", column=@Column(name="MONTH_INV_END", nullable=false) ) } )
    public SaleConditionTypeCcRateId getId() {
        return this.id;
    }
    
    public void setId(SaleConditionTypeCcRateId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="SALE_CONT_TYPE_NO", nullable=false, insertable=false, updatable=false)
    public SaleConditionType getSaleConditionType() {
        return this.saleConditionType;
    }
    
    public void setSaleConditionType(SaleConditionType saleConditionType) {
        this.saleConditionType = saleConditionType;
    }

    
    @Column(name="CC_INTEREST_RATE_DISC_CALC_TYPE")
    public Short getCcInterestRateDiscCalcType() {
        return this.ccInterestRateDiscCalcType;
    }
    
    public void setCcInterestRateDiscCalcType(Short ccInterestRateDiscCalcType) {
        this.ccInterestRateDiscCalcType = ccInterestRateDiscCalcType;
    }

    
    @Column(name="CC_INTEREST_RATE_DISC_VAL", precision=15)
    public BigDecimal getCcInterestRateDiscVal() {
        return this.ccInterestRateDiscVal;
    }
    
    public void setCcInterestRateDiscVal(BigDecimal ccInterestRateDiscVal) {
        this.ccInterestRateDiscVal = ccInterestRateDiscVal;
    }

    
    @Column(name="CC_INTEREST_RATE_DISC_PERC", precision=10)
    public BigDecimal getCcInterestRateDiscPerc() {
        return this.ccInterestRateDiscPerc;
    }
    
    public void setCcInterestRateDiscPerc(BigDecimal ccInterestRateDiscPerc) {
        this.ccInterestRateDiscPerc = ccInterestRateDiscPerc;
    }




}


